var robot = require("robotjs");

//Mouse down at 10, 10 and then drag to 100, 100 and release.
robot.moveMouse(5, 15);
robot.mouseToggle("down");

// 并不一定用 dragMouse, toggle down状态下, mouseMove也可以
robot.dragMouse(226, 15);
// robot.moveMouse(226, 15);
// robot.moveMouseSmooth(226, 15); //todo 前面两个不能拖拽成功浏览器的bar, 但我们这里（moveMouseSmooth）可以


// robot.mouseClick('left');
robot.mouseToggle("up");

